const {baseService2} =require('../../baseService2')
const {xuekeModel} =require('../../../dao/model/model')

/* 
记得在serviceEnter里注册一下
*/

/* 异常类 */
class xuekeServiceError extends Error {
    constructor(error,message='xuekeService异常'){
        super()
        this.error = error
        this.message=message
    }
}


class xuekeService extends baseService2{

    static ins = new xuekeService()
    constructor(){
        super(xuekeModel,xuekeServiceError)
    }

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new xuekeService()
        }
    }


}







module.exports={xuekeService}
